<include file="Public:header" />
<script charset="utf-8" src="/editor/kindeditor.js"></script>
<script charset="utf-8" src="/editor/lang/zh_CN.js"></script>
<script>
	var editor;
	KindEditor.ready(function(K) {
			editor = K.create('#page_content',{
					langType : 'en'
				});
	});
		
	function form_check(){
		if($("#page_title").val()==""){
			alert("Title can not empty!");
			return false;
		}
		return true;
	}
</script>
<div id="content">
	<form action="#" method="post" onsubmit="return form_check();">
        <input type="hidden" name="plid" value="{$Think.get.plid}" />
    	<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px;margin-top:8px;">
			
            <tr>
				<td colspan="2" background="__PUBLIC__/admin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title'><span>Add New Page Language</span></td>
			</tr>
            <tr>
            	<td width="18%"><div align="right">Language &nbsp; </div></td>
                <td width="82%">
                	<select name="lang_code">
                    	<foreach name="data.tb_langs" item="vo">
                        	<option value="{$vo.lang_code}">{$vo.language}</option>
                        </foreach>
                    </select>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td width="18%"><div align="right">Product Name: &nbsp; </div></td>
                <td width="82%"><input type="text" name="name" id="name" value="{$data.tb_products_lang.name}" size="113" /> &nbsp; <font color="#FF0000">*</font></td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td width="18%"><div align="right">Product Description &nbsp; </div></td>
                <td width="82%"><textarea name="description" id="description" style="width:695px;height:100px;">{$data.tb_products_lang.description}</textarea></td>
            </tr>
            <tr bgcolor="#FFFFFF">
            	<td colspan="2">
                    <div align="center"><input type="submit" name="Submit" value="Add"> 
                        <input type="reset" name="reset" value="Reset">
                    </div>
            	</td>
            </tr>
        </table>
    </form>
</div>

<include file="Public:footer" />